<div class='fui-page fui-page-current' ng-if="!pagedata.order.id">
    <div class="fui-content" style="margin-bottom:2.2rem">
		<!--状态-->
			<div class="order_header" style="padding-top: 5rem;">
			  <div class="red" style="width:8rem;margin:0 auto">
				<img style="width:8rem;" ng-src="{{tomedia(pagedata.pluginset.saotable) || '../addons/jy_weidish_xibei/resource/images/saotable.png'}}">
			  </div>
			  <div class="order_detail_ststus c" style="padding:0.3rem;background:none">
					<div style="font-size: 0.85rem;">就座后,<span class='red'>扫描桌上二维码</span>下单</div>
			  </div>
			</div>
			<div class="weui_btn_area" style="margin:2rem 3rem;margin-bottom:0.5rem">				
				<a class="weui_btn weui_btn_red" style="border-radius:1rem" href="javascript:" id="showTooltips" ng-click="scancode()">扫一扫</a>
			</div>
			<div class="gray c" href="javascript:" id="showTooltips" ng-click="access_json('jy_weidish_xibei/index//')">返回首页</div>
	</div>
	<div ng-include="sys_html('common/pluginnav',true)"></div>
</div>
<script language="javascript">
scope.scancode = function(){
	console.log('scancode');
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href= result;					
				}
			});
}
</script>